#ifndef MEDIA_MANAGER_H
#define MEDIA_MANAGER_H



#include <SFML/Graphics.hpp>
#include <gtest/gtest.h>
#include "spriteEnum.h"
#include <math.h>
#include <vector>
#include "Character.h"
#include "Bullet.h"

class SpriteManager{

public:
	SpriteManager();
	sf::Text getText();
	void setText(std::string texte, int size, sf::Color, sf::Vector2f position);
	void setBackground(int level);
	void setTextureOnCharacter(Character&);
	void setTurret(Character&);
	void setTextureOnBullet(Bullet&);	
	void setVideoOnSprite(int image);
	void setSprite(sf::Vector2f position, sf::Vector2f scale, SpriteEnum sprite);
	sf::Sprite getSprite();
	sf::Sprite getShadowSprite();
private:

	sf::Font font;
	sf::Text text;

	sf::Texture textureTank1;
	sf::Texture textureTank2;
	sf::Texture textureTank3;
	sf::Texture textureTank4;
	sf::Texture textureTank5;
	sf::Texture textureEnemy1;
	sf::Texture textureEnemy2;
	sf::Texture textureEnemy3;
	sf::Texture textureEnemyBOSS;
	sf::Texture textureBackground1;
	sf::Texture textureBackground2;
	sf::Texture textureBackground3;
	sf::Texture textureBackground4;
	sf::Texture textureBackground5;
	sf::Texture textureRocket1;
	sf::Texture textureEnemyBullet1;
	sf::Texture textureBackgroundEndGame;
	sf::Sprite sprite;
	sf::Sprite shadowSprite;


	sf::Texture videoTexture;

	sf::Vector2u size;
	
	const float Pi = float(3.1415926535897);
	void setSpriteShadow(float distance);
	int currentSprite;
};






#endif